<extend name="Public:innerbase" />
<block name="css">
<style type="text/css">
	.face-icon{
		position:relative;
		background:url('{:RES}/images/img/biaoqing.png') no-repeat left center;
		padding-left: 20px;
		cursor: pointer;
	}
	
	.face-icon>table{
		background-color: white;
		display:none;
		width:400px;
		position: absolute;
	}
	
	.face-icon td{
		padding:1px !important;
		background-color: white;
		border:1px solid rgb(238, 238, 238);
	}
	
	.face-icon img{
		cursor: pointer;
		width:25px;
		height:25px;
	}
	
	.face-icon img:hover{
		background-color: rgb(71, 164, 71);
	}
	
	.face-icon:hover>table{
		display:block;
	}
	.toolbar{
		margin: 5px 0;
	}
</style>
</block>
<block name="content">
<div class="container-fluid">
	<div class="page-header wm-page-header">
		<h4>编辑文本回复</h4>
		<a href="{:U('Text/index')}"  class="btn btn-default btn-sm">
			<span class="glyphicon glyphicon-chevron-left"></span>&nbsp;返回
		</a>
	</div>
	<div>
		<form class="form-horizontal" method="post" action="">
			<input type="hidden" name="id" value="{$info.id}" />
			<div class="form-group">
				<label class="col-sm-2 control-label wm-control-label" >关键词</label>
				<div class="col-md-2">
					<input type="text" id="keyword" value="{$info.keyword}" name="keyword" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label wm-control-label" >匹配模式</label>
				<div class="col-md-4">
					<label style="cursor:pointer;">
						<input type="radio" name="type" id="type1" value="1" <if condition="($info eq null) OR ($info['type'] eq 1)">checked</if>>精准匹配
					</label>
					&nbsp;&nbsp;
					<label style="cursor:pointer;">
						<input type="radio" name="type" id="type0" value="0" <if condition="$info AND ($info['type'] eq 0)">checked</if>>模糊匹配
					</label>
				</div>
				<div class="col-md-4" style="padding-top:5px;">
					<span class="label label-info"></span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label wm-control-label" >回复内容</label>
				<div class="col-md-5">
					<div class="toolbar">
					<span class="face-icon">
						表情
						<table class="table">
							<tr>
							<td><img src="{:RES}/images/face/0.gif" alt="微笑" onclick="jsbq('微笑')"></td>
							<td><img src="{:RES}/images/face/1.gif" alt="撇嘴" onclick="jsbq('撇嘴')"></td>
							<td><img src="{:RES}/images/face/2.gif" alt="色" onclick="jsbq('色')"></td>
							<td><img src="{:RES}/images/face/3.gif" alt="发呆" onclick="jsbq('发呆')"></td>
							<td><img src="{:RES}/images/face/4.gif" alt="得意" onclick="jsbq('得意')"></td>
							<td><img src="{:RES}/images/face/5.gif" alt="流泪" onclick="jsbq('流泪')"></td>
							<td><img src="{:RES}/images/face/6.gif" alt="害羞" onclick="jsbq('害羞')"></td>
							<td><img src="{:RES}/images/face/7.gif" alt="闭嘴" onclick="jsbq('闭嘴')"></td>
							<td><img src="{:RES}/images/face/8.gif" alt="睡" onclick="jsbq('睡')"></td>
							<td><img src="{:RES}/images/face/9.gif" alt="大哭" onclick="jsbq('大哭')"></td>
							<td><img src="{:RES}/images/face/10.gif" alt="尴尬" onclick="jsbq('尴尬')"></td>
							<td><img src="{:RES}/images/face/11.gif" alt="发怒" onclick="jsbq('发怒')"></td>
							<td><img src="{:RES}/images/face/12.gif" alt="调皮" onclick="jsbq('调皮')"></td>
							<td><img src="{:RES}/images/face/13.gif" alt="呲牙" onclick="jsbq('呲牙')"></td>
							<td><img src="{:RES}/images/face/14.gif" alt="惊讶" onclick="jsbq('惊讶')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/15.gif" alt="难过" onclick="jsbq('难过')"></td>
							<td><img src="{:RES}/images/face/16.gif" alt="酷" onclick="jsbq('酷')"></td>
							<td><img src="{:RES}/images/face/17.gif" alt="冷汗" onclick="jsbq('冷汗')"></td>
							<td><img src="{:RES}/images/face/18.gif" alt="抓狂" onclick="jsbq('抓狂')"></td>
							<td><img src="{:RES}/images/face/19.gif" alt="吐" onclick="jsbq('吐')"></td>
							<td><img src="{:RES}/images/face/20.gif" alt="偷笑" onclick="jsbq('偷笑')"></td>
							<td><img src="{:RES}/images/face/21.gif" alt="可爱" onclick="jsbq('可爱')"></td>
							<td><img src="{:RES}/images/face/22.gif" alt="白眼" onclick="jsbq('白眼')"></td>
							<td><img src="{:RES}/images/face/23.gif" alt="傲慢" onclick="jsbq('傲慢')"></td>
							<td><img src="{:RES}/images/face/24.gif" alt="饥饿" onclick="jsbq('饥饿')"></td>
							<td><img src="{:RES}/images/face/25.gif" alt="困" onclick="jsbq('困')"></td>
							<td><img src="{:RES}/images/face/26.gif" alt="惊恐" onclick="jsbq('惊恐')"></td>
							<td><img src="{:RES}/images/face/27.gif" alt="流汗" onclick="jsbq('流汗')"></td>
							<td><img src="{:RES}/images/face/28.gif" alt="憨笑" onclick="jsbq('憨笑')"></td>
							<td><img src="{:RES}/images/face/29.gif" alt="大兵" onclick="jsbq('大兵')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/30.gif" alt="奋斗" onclick="jsbq('奋斗')"></td>
							<td><img src="{:RES}/images/face/31.gif" alt="咒骂" onclick="jsbq('咒骂')"></td>
							<td><img src="{:RES}/images/face/32.gif" alt="疑问" onclick="jsbq('疑问')"></td>
							<td><img src="{:RES}/images/face/33.gif" alt="嘘" onclick="jsbq('嘘')"></td>
							<td><img src="{:RES}/images/face/34.gif" alt="晕" onclick="jsbq('晕')"></td>
							<td><img src="{:RES}/images/face/35.gif" alt="折磨" onclick="jsbq('折磨')"></td>
							<td><img src="{:RES}/images/face/36.gif" alt="衰" onclick="jsbq('衰')"></td>
							<td><img src="{:RES}/images/face/37.gif" alt="骷髅" onclick="jsbq('骷髅')"></td>
							<td><img src="{:RES}/images/face/38.gif" alt="敲打" onclick="jsbq('敲打')"></td>
							<td><img src="{:RES}/images/face/39.gif" alt="再见" onclick="jsbq('再见')"></td>
							<td><img src="{:RES}/images/face/40.gif" alt="擦汗" onclick="jsbq('擦汗')"></td>
							<td><img src="{:RES}/images/face/41.gif" alt="抠鼻" onclick="jsbq('抠鼻')"></td>
							<td><img src="{:RES}/images/face/42.gif" alt="鼓掌" onclick="jsbq('鼓掌')"></td>
							<td><img src="{:RES}/images/face/43.gif" alt="糗大了" onclick="jsbq('糗大了')"></td>
							<td><img src="{:RES}/images/face/44.gif" alt="坏笑" onclick="jsbq('坏笑')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/45.gif" alt="左哼哼" onclick="jsbq('左哼哼')"></td>
							<td><img src="{:RES}/images/face/46.gif" alt="右哼哼" onclick="jsbq('右哼哼')"></td>
							<td><img src="{:RES}/images/face/47.gif" alt="哈欠" onclick="jsbq('哈欠')"></td>
							<td><img src="{:RES}/images/face/48.gif" alt="鄙视" onclick="jsbq('鄙视')"></td>
							<td><img src="{:RES}/images/face/49.gif" alt="委屈" onclick="jsbq('委屈')"></td>
							<td><img src="{:RES}/images/face/50.gif" alt="快哭了" onclick="jsbq('快哭了')"></td>
							<td><img src="{:RES}/images/face/51.gif" alt="阴险" onclick="jsbq('阴险')"></td>
							<td><img src="{:RES}/images/face/52.gif" alt="亲亲" onclick="jsbq('亲亲')"></td>
							<td><img src="{:RES}/images/face/53.gif" alt="吓" onclick="jsbq('吓')"></td>
							<td><img src="{:RES}/images/face/54.gif" alt="可怜" onclick="jsbq('可怜')"></td>
							<td><img src="{:RES}/images/face/55.gif" alt="菜刀" onclick="jsbq('菜刀')"></td>
							<td><img src="{:RES}/images/face/56.gif" alt="西瓜" onclick="jsbq('西瓜')"></td>
							<td><img src="{:RES}/images/face/57.gif" alt="啤酒" onclick="jsbq('啤酒')"></td>
							<td><img src="{:RES}/images/face/58.gif" alt="篮球" onclick="jsbq('篮球')"></td>
							<td><img src="{:RES}/images/face/59.gif" alt="乒乓" onclick="jsbq('乒乓')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/60.gif" alt="咖啡" onclick="jsbq('咖啡')"></td>
							<td><img src="{:RES}/images/face/61.gif" alt="饭" onclick="jsbq('饭')"></td>
							<td><img src="{:RES}/images/face/62.gif" alt="猪头" onclick="jsbq('猪头')"></td>
							<td><img src="{:RES}/images/face/63.gif" alt="玫瑰" onclick="jsbq('玫瑰')"></td>
							<td><img src="{:RES}/images/face/64.gif" alt="凋谢" onclick="jsbq('凋谢')"></td>
							<td><img src="{:RES}/images/face/65.gif" alt="示爱" onclick="jsbq('示爱')"></td>
							<td><img src="{:RES}/images/face/66.gif" alt="爱心" onclick="jsbq('爱心')"></td>
							<td><img src="{:RES}/images/face/67.gif" alt="心碎" onclick="jsbq('心碎')"></td>
							<td><img src="{:RES}/images/face/68.gif" alt="蛋糕" onclick="jsbq('蛋糕')"></td>
							<td><img src="{:RES}/images/face/69.gif" alt="闪电" onclick="jsbq('闪电')"></td>
							<td><img src="{:RES}/images/face/70.gif" alt="炸弹" onclick="jsbq('炸弹')"></td>
							<td><img src="{:RES}/images/face/71.gif" alt="刀" onclick="jsbq('刀')"></td>
							<td><img src="{:RES}/images/face/72.gif" alt="足球" onclick="jsbq('足球')"></td>
							<td><img src="{:RES}/images/face/73.gif" alt="瓢虫" onclick="jsbq('瓢虫')"></td>
							<td><img src="{:RES}/images/face/74.gif" alt="便便" onclick="jsbq('便便')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/75.gif" alt="月亮" onclick="jsbq('月亮')"></td>
							<td><img src="{:RES}/images/face/76.gif" alt="太阳" onclick="jsbq('太阳')"></td>
							<td><img src="{:RES}/images/face/77.gif" alt="礼物" onclick="jsbq('礼物')"></td>
							<td><img src="{:RES}/images/face/78.gif" alt="拥抱" onclick="jsbq('拥抱')"></td>
							<td><img src="{:RES}/images/face/79.gif" alt="强" onclick="jsbq('强')"></td>
							<td><img src="{:RES}/images/face/80.gif" alt="弱" onclick="jsbq('弱')"></td>
							<td><img src="{:RES}/images/face/81.gif" alt="握手" onclick="jsbq('握手')"></td>
							<td><img src="{:RES}/images/face/82.gif" alt="胜利" onclick="jsbq('胜利')"></td>
							<td><img src="{:RES}/images/face/83.gif" alt="抱拳" onclick="jsbq('抱拳')"></td>
							<td><img src="{:RES}/images/face/84.gif" alt="勾引" onclick="jsbq('勾引')"></td>
							<td><img src="{:RES}/images/face/85.gif" alt="拳头" onclick="jsbq('拳头')"></td>
							<td><img src="{:RES}/images/face/86.gif" alt="差劲" onclick="jsbq('差劲')"></td>
							<td><img src="{:RES}/images/face/87.gif" alt="爱你" onclick="jsbq('爱你')"></td>
							<td><img src="{:RES}/images/face/88.gif" alt="NO" onclick="jsbq('NO')"></td>
							<td><img src="{:RES}/images/face/89.gif" alt="OK" onclick="jsbq('OK')"></td>
							</tr>
							<tr>
							<td><img src="{:RES}/images/face/90.gif" alt="爱情" onclick="jsbq('爱情')"></td>
							<td><img src="{:RES}/images/face/91.gif" alt="飞吻" onclick="jsbq('飞吻')"></td>
							<td><img src="{:RES}/images/face/92.gif" alt="跳跳" onclick="jsbq('跳跳')"></td>
							<td><img src="{:RES}/images/face/93.gif" alt="发抖" onclick="jsbq('发抖')"></td>
							<td><img src="{:RES}/images/face/94.gif" alt="怄火" onclick="jsbq('怄火')"></td>
							<td><img src="{:RES}/images/face/95.gif" alt="转圈" onclick="jsbq('转圈')"></td>
							<td><img src="{:RES}/images/face/96.gif" alt="磕头" onclick="jsbq('磕头')"></td>
							<td><img src="{:RES}/images/face/97.gif" alt="回头" onclick="jsbq('回头')"></td>
							<td><img src="{:RES}/images/face/98.gif" alt="跳绳" onclick="jsbq('跳绳')"></td>
							<td><img src="{:RES}/images/face/99.gif" alt="挥手" onclick="jsbq('挥手')"></td>
							<td><img src="{:RES}/images/face/100.gif" alt="激动" onclick="jsbq('激动')"></td>
							<td><img src="{:RES}/images/face/101.gif" alt="街舞" onclick="jsbq('街舞')"></td>
							<td><img src="{:RES}/images/face/102.gif" alt="献吻" onclick="jsbq('献吻')"></td>
							<td><img src="{:RES}/images/face/103.gif" alt="左太极" onclick="jsbq('左太极')"></td>
							</tr>
						</table>
					</span>
					</div>
					<textarea  class="form-control" id="Hfcontent" name="text" style="height:200px">{$info.text|htmlspecialchars_decode}</textarea>
				</div>
				<div class="col-md-4" style="padding-top:5px;">
					<div style="margin-left:20px" class="">
						<h4 class="text-danger">文字可以加链接哦：</h4>  
						<p class="text-info"> &lt;a&nbsp;href=&quot;http://w.weimarket.cn/&quot;&gt;3G首页&lt;/a&gt; </p>
						效果如下：<br>
						<img src="{:RES}/images/chaolianjie.jpg" alt="文字超链接效果" />
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-md-4 col-sm-offset-2">
					<button type="submit" name="button" class="btn btn-success">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>
</block>
<block name="js">
<script type="text/javascript">
	function jsbq(srt){
		$("#Hfcontent").val($("#Hfcontent").val()+"/"+srt);
	}
	var iconHtml='';
</script>
</block>